var address = location.href;
var id = address.split("=")[1];
$.ajax({
    url:"http://192.168.105.254/api/getinlanddiscount",
    type:"get",
    datatype:"json",
    data:{"productid":id},
    success:function(res){
        console.log(res);
        var html=template("temp",res);
        $(".main .box").html(html);
    }
})